import { Application } from 'egg';

const prefix = '/api';

export default (app: Application) => {
  const { controller, router } = app;
//   const jwtAuth = app.middleware.auth();

  router.post(prefix + '/login', controller.user.login);
  router.get(prefix + '/getInfo', controller.user.getInfo);
};
